package com.szp.lagou.neo4j.neo4jdemo.contollor;

import java.util.Map;

import com.szp.lagou.neo4j.neo4jdemo.service.PersonService;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/")
public class PersonController {
    private PersonService personService;

    public PersonController(PersonService personService){
        this.personService = personService;
    }
    @RequestMapping("/graph")
    public Map<String, Object> graph(){
        return personService.graph(100);
    }
}